package com.jy.adscm.zltx.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2018-10-30
 */
public class QsUpdatedFileTrain implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("fileId")
    private Integer fileId;
    @TableField("versionCode")
    private String versionCode;
    @TableField("trainer")
    private String trainer;
    @TableField("studyPersons")
    private String studyPersons;
    @TableField("trainTime")
    private Date trainTime;
    @TableField(exist = false)
    private String trainerName;
    @TableField("createTime")
    private  Date createTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getTrainerName() {
        return trainerName;
    }

    public void setTrainerName(String trainerName) {
        this.trainerName = trainerName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    public String getTrainer() {
        return trainer;
    }

    public void setTrainer(String trainer) {
        this.trainer = trainer;
    }

    public String getStudyPersons() {
        return studyPersons;
    }

    public void setStudyPersons(String studyPersons) {
        this.studyPersons = studyPersons;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getTrainTime() {
        return trainTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setTrainTime(Date trainTime) {
        this.trainTime = trainTime;
    }

    @Override
    public String toString() {
        return "QsUpdatedFileTrain{" +
        "id=" + id +
        ", fileId=" + fileId +
        ", versionCode=" + versionCode +
        ", trainer=" + trainer +
        ", studyPersons=" + studyPersons +
        ", trainTime=" + trainTime +
        "}";
    }
}
